<%@ page pageEncoding="UTF-8"%>
<%@ include file="/common/token.jsp"%>
<%
    String orderId = input.getDesc("order_id", "-1");
    List<Order> orders = QBuilder.db("basedb").select().from("Order").where(new Where("hospital =", hospital).and("status = ", STATUS_ENABLE).and("id =", orderId)).query().getResultObj();
    if (isEmpty(orders)) {
        msg = new Message(30041, "暂无预约信息");
        Tools.encryptPrint(out, msg);
        return;
    }
    Order order = orders.get(0);
    order.setState(STATE_OVER);
    DBTools.db("basedb").modItem(order, order.getId());
    Tools.encryptPrint(out, msg);
%>
